﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="ModuleControls.ascx.cs"
    Inherits="Framework.Portal.Layouts.Admin.Components.Modules.ModuleControls" %>
<asp:UpdatePanel ID="upanelGridPortals" runat="server" UpdateMode="Conditional" RenderMode="Inline">               
    <ContentTemplate>
        <table border="0" cellpadding="0" cellspacing="1" class="content" width="100%">
        <tr>
            <td class="postheader" width="30%" align="left" valign="top">
                <table border="0" cellpadding="0" cellspacing="1" class="content" style="width: 100%">
                    <tr>
                        <td class="post" align="left">
                            <asp:DropDownList ID="drgModules" runat="server" Width="276px" AutoPostBack="True" DataTextField="value" DataValueField="key" OnSelectedIndexChanged="drgModules_SelectedIndexChanged">                                
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="post" align="left">
                            <asp:TreeView ID="tvwControls" runat="server"  ExpandImageUrl="/Resource/Images/icon/14/col.gif" CollapseImageUrl="/Resource/Images/icon/14/exp.gif" NodeStyle-CssClass="TreeNode" NodeIndent="15" NoExpandImageUrl="/Resource/Images/icon/14/noexp.gif"
                            SelectedNodeStyle-CssClass="SelectedTreeNode" OnSelectedNodeChanged="tvwControls_SelectedNodeChanged" >                   
                            </asp:TreeView>
                        </td>
                    </tr>
                </table>
            </td>
            <td class="post" width="70%" align="left" valign="top">
                <table border="0" cellpadding="0" cellspacing="1" class="content" style="width: 100%">
                    <tr>
                        <td class="header1" colspan="2" align="left">
                            <asp:Label ID="lblCommandName" runat="server"></asp:Label><asp:HiddenField ID="txtControlKey" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="header2" height="18">
                            <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label>
                        </td>
                    </tr>
                    <tr>                        
                        <td class="postheader" width="25%" align="left">
                            <NS:Label ID="Label1" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="ID" /></td>
                        <td class="post" width="75%" align="left">
                            <asp:TextBox ID="txtID" runat="server" Font-Bold="True" Enabled="false"></asp:TextBox></td>
                    </tr>                    
                    <tr>
                        <td class="postheader" width="25%" align="left">
                            <NS:Label ID="Label3" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="NAME" /></td>
                        <td class="post" width="75%" align="left">
                            <asp:TextBox ID="txtControlName" runat="server" Width="95%"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td class="postheader" width="25%" align="left">
                            <NS:Label ID="Label9" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="DESCRIPTION" /></td>
                        <td class="post" width="75%" align="left">
                            <asp:TextBox ID="txtControlDescription" runat="server" Width="95%" TextMode="MultiLine" Rows="5"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td class="postheader" width="25%" align="left">
                            <NS:Label ID="Label5" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="FILEPATH" /></td>
                        <td class="post" width="75%" align="left">
                            <asp:DropDownList ID="dropPath" runat="server" Width="95%">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td class="postheader" width="25%" align="left">
                            <NS:Label ID="Label4" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="XMLPATH" /></td>
                        <td class="post" width="75%" align="left">
                            <asp:DropDownList ID="dropXmlPath" runat="server" Width="95%">
                            </asp:DropDownList></td>
                    </tr> 
                    <tr>
                        <td class="postheader" width="25%" align="left">
                            <NS:Label ID="Label6" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="EDITPATH" /></td>
                        <td class="post" width="75%" align="left">
                            <asp:DropDownList ID="dropEditPath" runat="server" Width="95%">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td class="postheader" width="25%" align="left">
                            <NS:Label ID="Label10" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="PRIORITY" /></td>
                        <td class="post" width="75%" align="left">
                            <asp:DropDownList ID="dropControlOrder" runat="server" Width="79px">
                            </asp:DropDownList></td>
                    </tr>  
                    <tr>
                        <td class="postheader" width="25%" align="left">
                            <NS:Label ID="Label12" runat="server" LocalizedPage="FORMCAPTION" LocalizedTag="PERMISSION" /></td>
                        <td class="post" width="75%" align="left">
                            <asp:CheckBox ID="chkPermission" runat="server" /></td>
                    </tr>       
                    <tr>
                        <td class="postfooter" colspan="2" valign="middle" align="center">
                            <NS:Button LocalizedPage="ACTION" LocalizedTag="CREATE" Authenticated="CREATE" ID="btnCreate" Text="Tạo mới" runat="server" CssClass="pbutton" Width="77px" OnClick="btnCreate_Click" />
                            &nbsp;
                            <NS:Button LocalizedPage="ACTION" LocalizedTag="UPDATE" Authenticated="UPDATE" ID="btnUpdate" Text="Cập nhật" runat="server" CssClass="pbutton" Width="77px" OnClick="btnUpdate_Click" />
                            &nbsp;
                            <NS:Button LocalizedPage="ACTION" LocalizedTag="DELETE" Authenticated="DELETE" ID="btnDelete" Text="Xóa" runat="server" CssClass="pbutton" Width="77px" OnClick="btnDelete_Click" />
                            &nbsp;
                            <NS:Button LocalizedPage="ACTION" LocalizedTag="RESET" ID="btnCancel" runat="server" CssClass="pbutton" Text="Hủy" Width="77px" OnClick="btnCancel_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>      
    </ContentTemplate>
</asp:UpdatePanel>